From: Jim Blandy Date: Wed, 19 May 1993 19:13:31 +0000 (+0000) Subject: * xdisp.c (redisplay_window): Compute the scrollbar start and end X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96156 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6887f62301ff2f76dfb86423ecfc43cbb05b381f;p=emacs.git * xdisp.c (redisplay_window): Compute the scrollbar start and end properly. --- diff --git a/src/xdisp.c b/src/xdisp.c index f37f1d4e976..f034bb203e6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1069,10 +1069,10 @@ done: if (! MINI_WINDOW_P (w) || (w == XWINDOW (minibuf_window) && ! echo_area_glyphs)) { - start = startp; + start = startp - BEGV; /* I don't think this is guaranteed to be right. For the moment, we'll pretend it is. */ - end = Z - XINT (w->window_end_pos); + end = Z - XINT (w->window_end_pos) - BEGV; whole = ZV - BEGV; if (end < start) end = start;